var news = {
		query:function(self){
			var pageInex = jQuery(self).attr("data-dt-idx");
			if (pageIndex == null || pageInex == "") {
				pageInex = 1;
			}
			$("#pageIndex").val(pageInex);
			jQuery("#newsQuery").submit();
		},
		contentAdd : function(url) {
			window.location.href=url;
		},
		detail:function(url){
			window.location.href=url;
		},
		content_del:function(url){
			layer.confirm('动态删除须谨慎，确认要删除吗？',function(index){
				//此处请求后台程序，下方是成功后的前台处理……
				$.ajax({
					url:url,
					type:"POST",
					dataType:"json",
					success:function(data){
						if(data.success=='0'){
							layer.alert('删除成功!',{icon:1,time:1000});
							window.location.reload();
						}else{
							layer.msg('删除失败!',{icon:1,time:1000});
						}
					},
					error:function(){
						layer.msg('系统错误,请稍后重试!',{icon:1,time:1000});
					}
				});
				
				//$(obj).parents("tr").remove();
				layer.msg('已删除!',{icon:1,time:1000});
			});
		}
}